<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String entity = (String)request.getAttribute("entity");
%>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="company/compayPager.do?funId=${funId}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						客户:<input type="text" name="map.custName_L" value="${pager.scMap.coName_L}">
						客户状态:<select name="map.activeStatusInt">
								<option value="">全部</option>
								<option value="1">正常</option>
								<option value="0">已停用</option>								
							  </select>
	
	       			</td>
				</tr>
			</table>
       		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>


<div class="panelBar">
	<ul class="toolBar">
		<li><a class="add" href="company/toEdit/-99999999.do?funId=${funId}" target="navTab" rel="companyEditor" title="添加新公司"><span>添加</span></a></li>
		<li class="line">line</li>
		<li><a class="icon" href='javascript:exportExcel($("#exportForm",$.pdialog.getCurrent()))'><span>导出</span></a></li>
	</ul>
</div>


<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th>公司ID </th>
				<th>公司名称</th>
				<th>联系人</th>
				<th>电话</th>
				<th>帐号前缀</th>
				<th>开始使用日期</th>
				<th>到期日期</th>
				<th>备注</th>
				<th>客户状态</th>
			    <th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item">
				<tr target="sid_<%=entity%>" rel="${item.id}">
				    <td>${item.id}</td>
					<td>${item.coName}</td>
					<td>${item.contact}</td>
					<td>${item.cellPhone}</td>
					<td>${item.accountPrefix}</td>
					<td>${item.createDate}</td>
					<td>${item.expireDate}</td>
					<td>${item.remark}</td>
					<td>${item.activeStatusInt=="1"?"正常":"已停用"}</td>

					<td>
						<a class="btnEdit"  target="navTab"  href="company/toEdit/${item.id}.do??funId=${funId}"  rel="companyEditor" title="编辑公司信息">编辑</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />
